import { defHttp } from '/@/utils/http/axios';

enum Api {
  Crud = '/log',
  Table = '/log/table',
}

export const getTableData = (params:any) => defHttp.get<LogItem[]>({ url: Api.Table, params: params });

export const deletes = (params: number[]) => defHttp.delete({url: Api.Crud, data: params});

//
interface LogItem {
  id: number,
  name: string;
}
